package com.cskaoyan.wordmemorize.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.cskaoyan.wordmemorize.dao.entity.VocChapterDO;
import com.cskaoyan.wordmemorize.dto.admin.DeleteChapterOperateDTO;
import com.cskaoyan.wordmemorize.dto.admin.PageDTO;
import com.cskaoyan.wordmemorize.dto.admin.VocChapterDTO;
import com.cskaoyan.wordmemorize.request.BatchDeleteCommand;
import com.cskaoyan.wordmemorize.request.VocChapterCommand;
import com.cskaoyan.wordmemorize.request.VocChapterPageRequest;

import java.util.List;

/**
 * @author 顾海龙
 * @version 1.0
 */
public interface ChapterService extends IService<VocChapterDO> {
    //添加章节
    void AddChapter(VocChapterDO chapterDO);

    //修改章节
    void UpdateChapter(VocChapterDO vocChapterDO);

    //分页查询章节列表
    PageDTO<VocChapterDTO> selectChapterList(VocChapterPageRequest pageRequest);

    //批量删除章节
    void deleteChapterList(BatchDeleteCommand command);

    //删除指定章节
    void deleteChapter(Long id);
}

